//
//  HTCFSystemUitilMacrocDefine.h
//  HTHappySale
//
//  Created by 创维海通 on 2017/9/14.
//  Copyright © 2017年 zxyywy. All rights reserved.
//

#ifndef HTCFSystemUitilMacrocDefine_h
#define HTCFSystemUitilMacrocDefine_h

/**
 *  文件描述
 *
 *  这个文件封装了大部分系统相关的功能宏定义
 */

#import "HTCFSystemUitil.h"

/**
 *  去除performSelector警告
 *
 */
#define GJCFSystemRemovePerformSelectorLeakWarning(code)                    \
_Pragma("clang diagnostic push")                                        \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"")     \
code;                                                                   \
_Pragma("clang diagnostic pop")                                         \


/**
 *  获取设备的前后摄像头像素
 *
 *  @param isFront  前面
 *  @param isBehind 后面
 *
 *  @return <#return value description#>
 */
#define HTCFSystemResolutionOfFront(frontValue,behindValue) [HTCFSystemUitil getResolutionOfFront:frontValue andBehind:behindValue];

/**
 *  获取设备id号
 *
 *  @return <#return value description#>
 */
#define HTCFSystemManufacturers_ID [HTCFSystemUitil gManufacturers_ID];

/**
 *  设备UUID号
 *
 *  @return <#return value description#>
 */
#define HTCFSystemUUID [HTCFSystemUitil uuid];

/**
 *  设备IDFV号
 *
 *  @return <#return value description#>
 */
#define HTCFSystemIDFV [HTCFSystemUitil idfv];

/**
 *  获取RAM容量
 *
 *  @return <#return value description#>
 */
#define HTCFSystemGetRAM [HTCFSystemUitil getRAM_Capacity];

/**
 *  获取设备总容量
 *
 *  @return <#return value description#>
 */
#define HTCFSystemTotalDiskSpace [HTCFSystemUitil totalDiskSpace];

/**
 *  获取设备可用容量
 *
 *  @return <#return value description#>
 */
#define HTCFSystemFreeDiskSpace [HTCFSystemUitil freeDiskSpace];

/**
 *  当前App的版本号
 */
#define HTCFSystemAppVersion [HTCFSystemUitil appVersion]

/**
 *  当前App的版本号 float型
 */
#define HTCFSystemAppFloatVersion [HTCFSystemUitil appFloatVersion]

/**
 *  当前App的版本号 字符串型
 */
#define HTCFSystemAppStringVersion [HTCFSystemUitil appStringVersion]

/**
 *  当前App的bundleIdentifier
 */
#define HTCFSystemAppBundleIdentifier [HTCFSystemUitil appBundleIdentifier]

/**
 *  屏幕绝对画布
 */
#define HTCFSystemScreenBounds [HTCFSystemUitil screenBounds]

/**
 *  获取系统版本号
 */
#define HTCFSystemVersion [HTCFSystemUitil currentSystemVersion]

/**
 *  当前屏幕缩放倍数
 */
#define HTCFScreenScale [HTCFSystemUitil currentScreenScale]

/**
 *  系统是否超过5.0
 */
#define HTCFSystemIsOver5 [HTCFSystemUitil isSystemVersionOver:5.0]

/**
 *  系统是否超过6.0
 */
#define HTCFSystemIsOver6 [HTCFSystemUitil isSystemVersionOver:6.0]

/**
 *  系统是否超过7.0
 */
#define HTCFSystemIsOver7 [HTCFSystemUitil isSystemVersionOver:7.0]

/**
 *  系统是否超过8.0
 */
#define HTCFSystemIsOver8 [HTCFSystemUitil isSystemVersionOver:8.0]

/**
 *  系统是否超过9.0
 */
#define HTCFSystemIsOver9 [HTCFSystemUitil isSystemVersionOver:9.0]

/**
 *  系统是否超过10.0
 */
#define HTCFSystemIsOver10 [HTCFSystemUitil isSystemVersionOver:10.0]

/**
 *  获取屏幕大小
 */
#define HTCFSystemScreenSize [HTCFSystemUitil deviceScreenSize]

/**
 *  获取屏幕宽度
 */
#define HTCFSystemScreenWidth [HTCFSystemUitil deviceScreenSize].width

/**
 *  获取屏幕高度
 */
#define HTCFSystemScreenHeight [HTCFSystemUitil deviceScreenSize].height

/**
 *  是否iPhone4
 */
#define HTCFSystemiPhone4 [GJCFSystemUitil iPhone4Device]

/**
 *  是否iPhone5
 */
#define HTCFSystemiPhone5 [HTCFSystemUitil iPhone5Device]

/**
 *  是否iPhone6
 */
#define HTCFSystemiPhone6 [HTCFSystemUitil iPhone6Device]

/**
 *  是否iPhone6 plus
 */
#define HTCFSystemiPhone6Plus [HTCFSystemUitil iPhone6PlusDevice]

/**
 *  是否iPad
 */
#define HTCFSystemiPad [HTCFSystemUitil iPadDevice]

/**
 *  系统UINavigationBar高度
 */
#define HTCFSystemNavigationBarHeight [HTCFSystemUitil naivationBarHeight]

/**
 *  获取mainBundle
 */
#define HTCFMainBundle [NSBundle mainBundle]

/**
 *  获取mainBundle内名字为fileName的文件的路径
 */
#define HTCFMainBundlePath(fileName) [HTCFSystemUitil mainBundlePath:fileName]

/**
 *  获取路径为bundlePath的指定bundle中文件名为fileName的文件路径
 */
#define HTCFBundlePath(bundlePath,fileName) [HTCFSystemUitil bundle:bundlePath file:fileName]

/**
 *  App是否有权限访问照片库
 */
#define HTCFAppCanAccessPhotoLibrary [HTCFSystemUitil isAppPhotoLibraryAccessAuthorized]

/**
 *  App是否有权限访问相机
 */
#define HTCFAppCanAccessCamera [HTCFSystemUitil isAppCameraAccessAuthorized]

/**
 *  系统通知中心
 */
#define HTCFNotificationCenter [HTCFSystemUitil defaultCenter]

/**
 *  系统通知中心发noti名字的通知
 */
#define HTCFNotificationPost(noti) [HTCFSystemUitil postNoti:noti]

/**
 *  系统通知中心发noti名字的通知，携带参数对象object
 */
#define HTCFNotificationPostObj(noti,object) [HTCFSystemUitil postNoti:noti withObject:object]

/**
 *  系统通知中心发noti名字的通知，携带参数对象object ,携带用户自定义信息userInfo
 */
#define HTCFNotificationPostObjUserInfo(noti,object,userInfo) [HTCFSystemUitil postNoti:noti withObject:object withUserInfo:userInfo]

/**
 *  宽度比例
 */
#define HTCFAppWidthScale [HTCFSystemUitil widthScale]

/**
 *  高度比例
 */
#define HTCFAppHeightScale [HTCFSystemUitil widthScale]

#endif /* HTCFSystemUitilMacrocDefine_h */
